package com.knshare.gen.mapping;

import java.util.HashMap;
import java.util.Map;

/**
 * JavaType映射
 *
 * @author 杨静 1475654312@qq.com
 */
public class JavaTypeMapping {

    /**
     * 获取JavaType映射
     *
     * @param JDBCType JDBC类型
     * @return JavaType
     */
    public static String getJavaType(String JDBCType) {
        Map<String, String> map = new HashMap<>();
        map.put("varchar","String");
        map.put("bigint","Long");
        map.put("int","Integer");
        map.put("datetime","Date");
        return map.get(JDBCType);
    }
}
